package cn.icatw.gulimall.ware.constant;

/**
 * mq常数
 *
 * @author icatw
 * @date 2022/3/29
 * @email 762188827@qq.com
 * @apiNote
 */
public class MqConstant {
    public static class Exchange {
        public static final String STOCK_EVENT_EXCHANGE = "stock-event-exchange";
    }

    public static class Queue {
        public static final String STOCK_RELEASE_STOCK_QUEUE = "stock.release.stock.queue";
        public static final String STOCK_DELAY_QUEUE = "stock.delay.queue";

    }

    public static class RouteKey {
        public static final String DEAD_LETTER_ROUTING_KEY = "stock.release";
        public static final String STOCK_RELEASE_BINDING_ROUTING_KEY = "stock.release.#";
        public static final String STOCK_LOCKED_BINDING_ROUTING_KEY = "stock.locked";
    }

    //public static final String stockReleaseStockQueue = "stock.release.stock.queue";
    //public static final String STOCK_EVENT_EXCHANGE = "stock-event-exchange";
    //public static final String STOCK_EVENT_EXCHANGE = "stock-event-exchange";

}
